﻿package mortal.game.view.ranking.view
{
    import Message.Client.*;
    import Message.DB.Tables.*;
    import Message.Game.*;
    import Message.Public.*;
    import com.greensock.*;
    import com.greensock.layout.*;
    import com.mui.controls.*;
    import com.mui.core.*;
    import com.mui.utils.*;
    import extend.language.*;
    import flash.events.*;
    import flash.geom.*;
    import frEngine.pools.*;
    import frEngine.primitives.object2d.*;
    import frEngine.render.layer.*;
    import mortal.common.*;
    import mortal.common.global.*;
    import mortal.component.window.*;
    import mortal.game.events.*;
    import mortal.game.manager.*;
    import mortal.game.manager.window3d.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.resource.info.item.*;
    import mortal.game.resource.tableConfig.*;
    import mortal.game.scene3D.player.entity.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.display.*;
    import mortal.game.view.ranking.*;
    import mortal.game.view.ranking.data.*;
    import mortal.mvc.core.*;

    public class RankingEquipDisplaySpr extends RoleEquipDisplayPanelBase
    {
        private var _roleInfo:GTextFiled;
        private var _roleGuideInfo:GTextFiled;
        private var _vipIcon:GImageBitmap;
        private var _title:GTextFiled;
        private var _levelSex:GTextFiled;
        private var _combat:BitmapNumberText;
        private var _handUpImg:GBitmap;
        private var _handDownImg:GBitmap;
        private var _handUpSpr:GSprite;
        private var _handDownSpr:GSprite;
        private var _totalPraiseNum:GTextFiled;
        private var _totalDespiseNum:GTextFiled;
        private var _sign:GTextFiled;
        private var _plusNum:GTextFiled;
        private var _minusNum:GTextFiled;
        private var _lookInfoBtn:GLoadingButton;
        private var _currRoleInfo:SLookPlayerInfo;
        private var _timeLine:TimelineLite;

        public function RankingEquipDisplaySpr(param1:Window)
        {
            super(param1);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            _equipPanel.y = 43 - 12;
            this.pushUIToDisposeVec(UIFactory.bg(7, 0, 114, 22, this, ImagesConst.InputBg));
            this.pushUIToDisposeVec(UIFactory.bg(131, 0, 114, 22, this, ImagesConst.InputBg));
            this.pushUIToDisposeVec(UIFactory.bg(6, 44, 245, -1, this, ImagesConst.Call2Bg));
            this._roleInfo = UIFactory.gTextField("", 7, 1, 114, 20, this, GlobalStyle.textFormatHuang.center());
            this._roleGuideInfo = UIFactory.gTextField("", 131, 1, 114, 20, this, GlobalStyle.textFormatHuang.center());
            this._vipIcon = UIFactory.gImageBitmap("", 25 - 10, 50 - 8, this);
            this.pushUIToDisposeVec(UIFactory.gTextField(Language.getString(41351), 58, 44, 37, 20, this, GlobalStyle.textFormatBai));
            this.pushUIToDisposeVec(UIFactory.gTextField(Language.getString(41352), 146, 44, 37, 20, this, GlobalStyle.textFormatBai));
            this._title = UIFactory.gTextField("", 94, 44, 55, 20, this, GlobalStyle.textFormatHuang2);
            this._levelSex = UIFactory.gTextField("", 182, 44, 70, 20, this, GlobalStyle.textFormatHuang2);
            this.pushUIToDisposeVec(UIFactory.bg(51, 408, 155, 25, this, ImagesConst.RegionTitleBg));
            this.pushUIToDisposeVec(UIFactory.gBitmap(ImagesConst.RoleFightPower, 78 - 10, 412, this));
            this._combat = UIFactory.bitmapNumberText(127 + 3, 413, "FightInfoNum.png", 12, 15, -1, this);
            this._combat.text = "";
            this._handUpSpr = UICompomentPool.getUICompoment(GSprite);
            this._handUpSpr.mouseEnabled = true;
            this._handUpSpr.buttonMode = true;
            this._handUpSpr.x = 34 - 5;
            this._handUpSpr.y = 396 + 18;
            this.addChild(this._handUpSpr);
            this._handUpSpr.configEventListener(MouseEvent.MOUSE_OVER, this.onOverHandler);
            this._handUpSpr.configEventListener(MouseEvent.MOUSE_OUT, this.onOutHandler);
            this._handDownSpr = UICompomentPool.getUICompoment(GSprite);
            this._handDownSpr.mouseEnabled = true;
            this._handDownSpr.buttonMode = true;
            this._handDownSpr.x = 214 - 2;
            this._handDownSpr.y = 396 + 18;
            this.addChild(this._handDownSpr);
            this._handDownSpr.configEventListener(MouseEvent.MOUSE_OVER, this.onOverHandler);
            this._handDownSpr.configEventListener(MouseEvent.MOUSE_OUT, this.onOutHandler);
            this._handUpImg = UIFactory.gBitmap(ImagesConst.ChongbaiIcon, 0, 0, this._handUpSpr);
            this._handDownImg = UIFactory.gBitmap(ImagesConst.BishiIcon, 0, 0, this._handDownSpr);
            var _loc_1:* = GlobalStyle.textFormatBai;
            _loc_1.align = AlignMode.CENTER;
            this._totalPraiseNum = UIFactory.gTextField("", 30 - 10, 412 + 18, 30, 20, this, _loc_1);
            this._totalDespiseNum = UIFactory.gTextField("", 210 - 7, 412 + 18, 30, 20, this, _loc_1);
            this.pushUIToDisposeVec(UIFactory.bg(0, 446 + 3, 251, 23, this, ImagesConst.InputBg));
            this._sign = UIFactory.gTextField("", 2, 446 + 3, 251, 23, this);
            this._plusNum = UIFactory.gTextField("+1", 30 - 5, 375 + 18, 20, 20, this);
            this._plusNum.mouseEnabled = false;
            this._plusNum.alpha = 0;
            this._minusNum = UIFactory.gTextField("+1", 213 - 2, 375 + 18, 20, 20, this);
            this._minusNum.mouseEnabled = false;
            this._minusNum.alpha = 0;
            this._handUpSpr.configEventListener(MouseEvent.CLICK, this.onHandClickHandler);
            this._handUpSpr.visible = false;
            this._handDownSpr.configEventListener(MouseEvent.CLICK, this.onHandClickHandler);
            this._handDownSpr.visible = false;
            this._lookInfoBtn = UIFactory.gLoadingButton(ResFileConst.RankingLookInfoBtn, 116 - 17, 396 + 18 + 80 - 20, 53, 27, this);
            this._lookInfoBtn.configEventListener(MouseEvent.CLICK, this.onLookInfoHandler);
            this.pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.RankUpdateTxt, 74 - 31, 396 + 18 + 80 - 20 + 33, this));
            this.addListener();
            return;
        }// end function

        private function addListener() : void
        {
            NetDispatcher.addCmdListener(ServerCommand.RankingLookRoleInfo, this.onShowRoleInfoHandler);
            NetDispatcher.addCmdListener(ServerCommand.RankingkickPraiseSucc, this.onkickPraiseSuccHandler);
            Dispatcher.addEventListener(EventName.RankingLookRoleInfo, this.onReqRoleInfoHandler);
            return;
        }// end function

        override public function set data(param1:Object) : void
        {
            return;
        }// end function

        override protected function init3DRect() : void
        {
            var _loc_2:Rectangle = null;
            var _loc_1:* = (_window as RankingModule).rect3d;
            if (_loc_1 == null)
            {
                _loc_1 = Rect3DManager.instance.registerWindow(true, new Rectangle(651 + 2, 64 - 5, 266 + 4, 542), _window);
                Rect3DManager.instance.windowShowHander(null, _window);
                (_window as RankingModule).rect3d = _loc_1;
            }
            if (_scale9gridImg2d == null)
            {
                _loc_2 = new Rectangle(33, 38, 1, 1);
                _scale9gridImg2d = new Scale9GridImg2DEx(null, GlobalClass.getBitmapData(ImagesConst.PlayerBg), true, _loc_2);
                _scale9gridImg2d.SetSize(270 + 4, 542 + 5, -2, -2);
                _loc_1.addImg(_scale9gridImg2d, Layer3DManager.backGroudImgLayer);
            }
            _roleModelBg.imgUrl = ImagesConst.RankingRoleModelBg;
            return;
        }// end function

        override protected function onBgLoadCompl() : void
        {
            var _loc_1:* = (_window as RankingModule).rect3d;
            if (_loc_1)
            {
                _loc_1.removeImg(_img2d);
                _img2d = new Img2D(null, _roleModelBg.bitmapData, new Rectangle(0, 0, 168, 315), false);
                _img2d.x = 52 - 1;
                _img2d.y = 102 + 4;
                _loc_1.addImg(_img2d);
            }
            return;
        }// end function

        override protected function updateRoleModel() : void
        {
            var _loc_2:int = 0;
            var _loc_3:int = 0;
            var _loc_4:int = 0;
            var _loc_5:int = 0;
            var _loc_6:int = 0;
            var _loc_7:int = 0;
            var _loc_8:int = 0;
            var _loc_9:int = 0;
            var _loc_10:SPlayerItem = null;
            var _loc_11:int = 0;
            var _loc_12:int = 0;
            var _loc_13:int = 0;
            var _loc_14:Boolean = false;
            var _loc_15:Boolean = false;
            var _loc_16:Boolean = false;
            var _loc_17:ItemEquipInfo = null;
            var _loc_1:* = (_window as RankingModule).rect3d;
            if (_loc_1)
            {
                if (!_roleModelPlayer)
                {
                    _roleModelPlayer = FrObjectPool.getObject(UserModelPlayer, this);
                }
                _loc_2 = this._currRoleInfo.miniPlayer.career;
                _loc_3 = this._currRoleInfo.miniPlayer.sex;
                for each (_loc_10 in this._currRoleInfo.playerItems)
                {
                    
                    _loc_17 = ItemConfig.instance.getConfig(_loc_10.itemCode) as ItemEquipInfo;
                    if (_loc_17)
                    {
                        switch(_loc_17.type)
                        {
                            case EEquip._EEquipClothes:
                            {
                                _loc_8 = _loc_17.modelId;
                                break;
                            }
                            case EEquip._EEquipWeapon:
                            {
                                _loc_9 = _loc_17.modelId;
                                break;
                            }
                            case EEquip._EEquipHeadwear:
                            {
                                _loc_4 = _loc_17.modelId;
                                break;
                            }
                            default:
                            {
                                break;
                            }
                        }
                    }
                }
                _loc_11 = this.getClothesModelId();
                _loc_12 = this.getWeaponModelId();
                _loc_13 = this.getWingModelId();
                _loc_5 = _loc_11 > 0 ? (_loc_11) : (_loc_8);
                _loc_7 = _loc_12 > 0 ? (_loc_12) : (_loc_9);
                _loc_6 = _loc_13 > 0 ? (_loc_13) : (0);
                _loc_14 = this._currRoleInfo.clothesCode > 10000;
                _loc_15 = this._currRoleInfo.wingCode > 10000;
                _loc_16 = this._currRoleInfo.weaponCode > 10000;
                _roleModelPlayer.updateIsShowEffect(_loc_16, _loc_14, _loc_15);
                _roleModelPlayer.updateInfo(_loc_2, _loc_3, _loc_5, _loc_7, _loc_4, _loc_6, this._currRoleInfo.miniPlayer.VIP);
                _roleModelPlayer.scaleAll = 1.4;
                _roleModelPlayer.useLight();
                _loc_1.addObject3d(_roleModelPlayer, 103 + 45 - 15, 180 + 190);
                _rotate3d.model = _roleModelPlayer;
            }
            return;
        }// end function

        private function getClothesModelId() : int
        {
            var _loc_1:int = 0;
            var _loc_2:ItemEquipInfo = null;
            var _loc_3:TMountConfig = null;
            if (this._currRoleInfo.clothesCode > 10000)
            {
                _loc_2 = ItemConfig.instance.getConfig(this._currRoleInfo.clothesCode) as ItemEquipInfo;
                _loc_1 = _loc_2 ? (_loc_2.modelId) : (0);
            }
            else
            {
                _loc_3 = MountConfig.instance.getFashionInfoByCode(EAdvanceComponentType._EAdvanceComponentTypeClothes, this._currRoleInfo.clothesCode);
                _loc_1 = _loc_3 ? (_loc_3.modelId) : (0);
            }
            return _loc_1;
        }// end function

        private function getWingModelId() : int
        {
            var _loc_1:int = 0;
            var _loc_2:ItemEquipInfo = null;
            var _loc_3:TMountConfig = null;
            if (this._currRoleInfo.wingCode > 10000)
            {
                _loc_2 = ItemConfig.instance.getConfig(this._currRoleInfo.wingCode) as ItemEquipInfo;
                _loc_1 = _loc_2 ? (_loc_2.modelId) : (0);
            }
            else
            {
                _loc_3 = MountConfig.instance.getFashionInfoByCode(EAdvanceComponentType._EAdvanceComponentTypeWing, this._currRoleInfo.wingCode);
                _loc_1 = _loc_3 ? (_loc_3.modelId) : (0);
            }
            return _loc_1;
        }// end function

        private function getWeaponModelId() : int
        {
            var _loc_1:int = 0;
            var _loc_2:ItemEquipInfo = null;
            var _loc_3:TMountConfig = null;
            if (this._currRoleInfo.weaponCode > 10000)
            {
                _loc_2 = ItemConfig.instance.getConfig(this._currRoleInfo.weaponCode) as ItemEquipInfo;
                _loc_1 = _loc_2 ? (_loc_2.modelId) : (0);
            }
            else
            {
                _loc_3 = MountConfig.instance.getFashionInfoByCode(EAdvanceComponentType._EAdvanceComponentTypeWing, this._currRoleInfo.weaponCode);
                _loc_1 = _loc_3 ? (_loc_3.modelId) : (0);
            }
            return _loc_1;
        }// end function

        override protected function remove3d() : void
        {
            var _loc_1:* = (_window as RankingModule).rect3d;
            if (_loc_1)
            {
                if (_scale9gridImg2d)
                {
                    _loc_1.disposeObj3d(_scale9gridImg2d);
                    _scale9gridImg2d = null;
                }
                if (_img2d)
                {
                    _loc_1.removeImg(_img2d);
                    _img2d = null;
                }
                if (_roleModelPlayer)
                {
                    _loc_1.disposeObj3d(_roleModelPlayer);
                    _roleModelPlayer = null;
                }
            }
            return;
        }// end function

        private function removeRoleModel() : void
        {
            var _loc_1:* = (_window as RankingModule).rect3d;
            if (_loc_1)
            {
                if (_roleModelPlayer)
                {
                    _loc_1.disposeObj3d(_roleModelPlayer);
                    _roleModelPlayer = null;
                }
            }
            return;
        }// end function

        private function updateAllInfo() : void
        {
            this.updateRoleInfo();
            this.updateGuideInfo();
            this.updateVipInfo();
            this.updateTitleInfo();
            this.updateLevelSexInfo();
            this.updateEquips();
            this.updateRoleModel();
            this.updateCombat();
            this.updatePraiseAndDespiseNum();
            this.updateSign();
            return;
        }// end function

        private function updateRoleInfo() : void
        {
            var _loc_1:* = this._currRoleInfo.miniPlayer.career;
            var _loc_2:* = GameDefConfig.instance.getCarrer(_loc_1);
            this._roleInfo.text = Language.getStringByParam(41353, this._currRoleInfo.miniPlayer.level, _loc_2);
            return;
        }// end function

        private function updateGuideInfo() : void
        {
            var _loc_1:Array = null;
            if (this._currRoleInfo.guildName == "")
            {
                this._roleGuideInfo.text = Language.getString(41354);
            }
            else
            {
                _loc_1 = this._currRoleInfo.guildName.split("#");
                this._roleGuideInfo.text = _loc_1[0];
            }
            return;
        }// end function

        private function updateVipInfo() : void
        {
            if (this._currRoleInfo.miniPlayer.VIP > 0)
            {
                this._vipIcon.imgUrl = GameDefConfig.instance.getVipLevelIconUrl(this._currRoleInfo.miniPlayer.VIP);
            }
            else
            {
                this._vipIcon.imgUrl = "";
            }
            return;
        }// end function

        private function updateTitleInfo() : void
        {
            this._title.text = this._currRoleInfo.titleName;
            return;
        }// end function

        private function updateLevelSexInfo() : void
        {
            var _loc_1:* = this._currRoleInfo.miniPlayer.level;
            var _loc_2:* = GameDefConfig.instance.getSex(this._currRoleInfo.miniPlayer.sex).text;
            this._levelSex.text = _loc_1 + "(" + _loc_2 + ")";
            return;
        }// end function

        private function updateCombat() : void
        {
            this._combat.text = this._currRoleInfo.miniPlayer.combat + "";
            return;
        }// end function

        private function updateSign() : void
        {
            if (this._currRoleInfo.miniPlayer.signature)
            {
                this._sign.text = this._currRoleInfo.miniPlayer.signature;
            }
            else
            {
                this._sign.text = Language.getString(41355);
            }
            return;
        }// end function

        private function updatePraiseAndDespiseNum() : void
        {
            this._totalPraiseNum.text = this._currRoleInfo.beAdored + "";
            this._totalDespiseNum.text = this._currRoleInfo.beDespised + "";
            this._handUpSpr.visible = true;
            this._handDownSpr.visible = true;
            return;
        }// end function

        private function updateEquips() : void
        {
            var _loc_1:* = this._currRoleInfo.playerItems;
            if (_loc_1)
            {
                _equipPanel.updateAllEquip(_loc_1, this._currRoleInfo.jewels);
            }
            return;
        }// end function

        private function onHandClickHandler(event:MouseEvent) : void
        {
            var _loc_2:int = 0;
            if (event.target == this._handUpSpr)
            {
                _loc_2 = RankingConst.ActionType_Praise;
            }
            else
            {
                _loc_2 = RankingConst.ActionType_Despise;
            }
            GameProxy.inter.votePlayer(_loc_2, this._currRoleInfo.miniPlayer.entityId);
            return;
        }// end function

        private function onkickPraiseSuccHandler(param1:SVotePlayerResult) : void
        {
            var _loc_2:GTextFiled = null;
            if (this._timeLine && this._timeLine.active)
            {
                this._timeLine.stop();
            }
            this._timeLine = new TimelineLite();
            if (param1.type == RankingConst.ActionType_Praise)
            {
                _loc_2 = this._plusNum;
            }
            else
            {
                _loc_2 = this._minusNum;
            }
            var _loc_3:* = _loc_2.x;
            var _loc_4:* = _loc_2.y;
            var _loc_5:* = _loc_2.x - 10;
            var _loc_6:* = _loc_2.y - 10;
            this._timeLine.append(TweenLite.to(_loc_2, 0.2, {alpha:1, scaleX:2, scaleY:2, x:_loc_5, y:_loc_6}));
            this._timeLine.append(TweenLite.to(_loc_2, 0.2, {alpha:0, scaleX:1, scaleY:1, x:_loc_3, y:_loc_4}));
            this._timeLine.play();
            this._totalPraiseNum.text = param1.beAdored + "";
            this._totalDespiseNum.text = param1.beDespised + "";
            return;
        }// end function

        private function onLinkClickHanlder(event:TextEvent) : void
        {
            var _loc_2:int = 0;
            var _loc_3:SEntityId = null;
            if (this._currRoleInfo)
            {
                _loc_2 = ELookUpType._ELookUpTypePlayer;
                _loc_3 = this._currRoleInfo.miniPlayer.entityId;
                GameProxy.chat.lookupRequest(ELookRoleInfoType._ECommonRoleInfo, _loc_3, _loc_2);
            }
            else
            {
                MsgManager.showRollTipsMsg(Language.getString(41356));
            }
            return;
        }// end function

        private function onOverHandler(event:MouseEvent) : void
        {
            CursorManager.showCursor(CursorManager.BUTTON);
            return;
        }// end function

        private function onOutHandler(event:MouseEvent) : void
        {
            CursorManager.hideFromButton();
            return;
        }// end function

        private function onLookInfoHandler(event:MouseEvent) : void
        {
            var _loc_2:SEntityId = null;
            if (this._currRoleInfo)
            {
                _loc_2 = this._currRoleInfo.miniPlayer.entityId;
                Dispatcher.dispatchEvent(new DataEvent(EventName.LookPlayerInfo, _loc_2));
            }
            else
            {
                MsgManager.showRollTipsMsg(Language.getString(41356));
            }
            return;
        }// end function

        private function onReqRoleInfoHandler(event:DataEvent) : void
        {
            var _loc_2:SToplist = null;
            var _loc_3:SEntityId = null;
            var _loc_4:int = 0;
            this.clear();
            if (event.data)
            {
                _loc_2 = event.data as SToplist;
                _loc_3 = new SEntityId();
                if (_loc_2.toplistType == EToplistType._EToplistTypePlayerOverview)
                {
                    if (_loc_2.reverse1 == EToplistType._EToplistTypePlayerLevel || _loc_2.reverse1 == EToplistType._EToplistTypePlayerCombat)
                    {
                        _loc_3.id = _loc_2.entityId;
                    }
                    else
                    {
                        _loc_3.id = _loc_2.ownerId;
                    }
                }
                else if (_loc_2.toplistType == EToplistType._EToplistTypePlayerLevel || _loc_2.toplistType == EToplistType._EToplistTypePlayerCombat || _loc_2.toplistType == EToplistType._EToplistTypePlayerSpriteCombat)
                {
                    _loc_3.id = _loc_2.entityId;
                }
                else
                {
                    _loc_3.id = _loc_2.ownerId;
                }
                _loc_3.type = EEntityType._EEntityTypePlayer;
                _loc_3.typeEx = _loc_2.serverId;
                _loc_3.typeEx2 = _loc_2.proxyId;
                _loc_4 = ELookUpType._ELookUpTypePlayer;
                GameProxy.chat.lookupRequest(ELookRoleInfoType._ERankRoleInfo, _loc_3, _loc_4);
            }
            return;
        }// end function

        private function onShowRoleInfoHandler(param1:SLookPlayerInfo) : void
        {
            if (param1)
            {
                this._currRoleInfo = param1;
                this.updateAllInfo();
            }
            return;
        }// end function

        private function getPraiseAndTrashNumSucc(param1:Object) : void
        {
            var _loc_2:* = param1.praise as int;
            var _loc_3:* = param1.trash as int;
            this._totalPraiseNum.text = _loc_2 + "";
            this._totalDespiseNum.text = _loc_3 + "";
            return;
        }// end function

        override public function clear() : void
        {
            this._currRoleInfo = null;
            this._roleInfo.text = Language.getString(41357);
            this._roleGuideInfo.text = Language.getString(41358);
            this._vipIcon.bitmapData = null;
            this._title.text = "";
            this._levelSex.text = "";
            this._combat.text = "";
            this._totalPraiseNum.text = "";
            this._totalDespiseNum.text = "";
            this._sign.text = "";
            this._handUpSpr.visible = false;
            this._handDownSpr.visible = false;
            this.removeRoleModel();
            _equipPanel.clear();
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._roleInfo.dispose(param1);
            this._roleGuideInfo.dispose(param1);
            this._vipIcon.dispose(param1);
            this._title.dispose(param1);
            this._levelSex.dispose(param1);
            this._combat.dispose(param1);
            this._handUpImg.dispose(param1);
            this._handDownImg.dispose(param1);
            this._handUpSpr.dispose(param1);
            this._handDownSpr.dispose(param1);
            this._totalPraiseNum.dispose(param1);
            this._totalDespiseNum.dispose(param1);
            this._sign.dispose(param1);
            this._plusNum.dispose(param1);
            this._minusNum.dispose(param1);
            this._lookInfoBtn.dispose();
            this._roleInfo = null;
            this._roleGuideInfo = null;
            this._vipIcon = null;
            this._title = null;
            this._levelSex = null;
            this._combat = null;
            this._handUpImg = null;
            this._handDownImg = null;
            this._handUpSpr = null;
            this._handDownSpr = null;
            this._totalPraiseNum = null;
            this._totalDespiseNum = null;
            this._sign = null;
            this._plusNum = null;
            this._minusNum = null;
            this._currRoleInfo = null;
            this._lookInfoBtn = null;
            NetDispatcher.removeCmdListener(ServerCommand.RankingLookRoleInfo, this.onShowRoleInfoHandler);
            Dispatcher.removeEventListener(EventName.RankingLookRoleInfo, this.onReqRoleInfoHandler);
            return;
        }// end function

    }
}
